Skip to content

Conversation

@jimmykarily
Copy link
Collaborator

Since we switched to using auroraboot as the tool-image, these scripts no longer exist. The functionality is provided by auroraboot itself.

Fixes kairos-io/kairos#3779

Since we switched to using auroraboot as the tool-image, these scripts
no longer exist. The functionality is provided by auroraboot itself.

Fixes kairos-io/kairos#3779

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily force-pushed the 3779-fix-cloud-image-building branch 3 times, most recently from 354e08c to 0ac0589 Compare November 26, 2025 08:18
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily force-pushed the 3779-fix-cloud-image-building branch from 0ac0589 to 35f18ca Compare November 26, 2025 13:34
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
so that the netboot container finds the ISO in place when it needs it

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily marked this pull request as ready for review December 1, 2025 11:54
@jimmykarily jimmykarily moved this from In Progress 🏃 to Under review 🔍 in 🧙Issue tracking board Dec 1, 2025
@jimmykarily jimmykarily requested review from a team and Copilot December 2, 2025 09:33
@jimmykarily jimmykarily self-assigned this Dec 2, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates legacy shell scripts to auroraboot commands after switching to auroraboot as the tool-image. The scripts (/raw-images.sh, /azure.sh, /gce.sh, /netboot.sh) have been removed and replaced with direct auroraboot command invocations.

Key changes:

  • Replaced legacy script calls with auroraboot CLI commands for cloud image, Azure, GCE, and netboot builds
  • Refactored e2e test helpers into shared TestClients struct to reduce code duplication
  • Added comprehensive e2e tests for different artifact formats (CloudImage, Netboot, AzureImage, GCEImage)
  • Enhanced controller tests to verify correct auroraboot command generation

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
controllers/job.go Replaced legacy shell script calls with auroraboot commands for cloud image, Azure, GCE, and netboot builds
controllers/osartifact_controller.go Added PVC existence check to handle race conditions
controllers/osartifact_controller_test.go Added comprehensive tests for auroraboot command generation and removed manager setup in favor of direct client
controllers/suite_test.go Added default service account creation and namespace deletion waiting for test isolation
tests/e2e/e2e_suite_test.go Extracted common test functionality into TestClients helper struct
tests/e2e/e2e_simple_test.go Refactored to use TestClients helper methods
tests/e2e/e2e_formats_test.go Added new e2e tests for CloudImage, Netboot, AzureImage, and GCEImage formats
Makefile Added conditional check to avoid re-downloading kustomize

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Dec 2, 2025

@jimmykarily I've opened a new pull request, #203, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits December 2, 2025 12:51
* Initial plan

* Refactor command string to use strings.Builder for better readability

Co-authored-by: jimmykarily <2794419+jimmykarily@users.noreply.github.com>

* Complete refactoring of command string

Co-authored-by: jimmykarily <2794419+jimmykarily@users.noreply.github.com>

* Refactor azureCmd and gceCmd to use strings.Builder

Co-authored-by: jimmykarily <2794419+jimmykarily@users.noreply.github.com>

* Revert unintended changes to generated files

Co-authored-by: jimmykarily <2794419+jimmykarily@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jimmykarily <2794419+jimmykarily@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
jimmykarily and others added 3 commits December 3, 2025 16:19
Co-authored-by: Jimmi Dyson <jimmi.dyson@nutanix.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Under review 🔍

Development

Successfully merging this pull request may close these issues.

osbuilder can't build cloud images

4 participants